class StudentBean:
    #初始化
    def __init__(self,name,sex,age):
        self.name = name
        self.sex = sex
        self.age = age

    def __str__(self):
        return f'{self.name},{self.sex},{self.age}'


if __name__ == '__main__':
    st = StudentBean('张三','男',18)
    print(st)